package com.atguigu.gmall.feign.item;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @author 钟涛
 * @version 1.0
 * @description: TODO
 * @date 2021/12/10 13:52
 */
@RequestMapping("/api/sku")
@FeignClient("service-item")
public interface SkuDetailFeignClient {
    @RequestMapping("/detail/{id}")
    public Map<String,Object> skuDetails(@PathVariable("id") Long skuId);

}
